package com.cqrt.mapper;

import com.cqrt.entity.RTTraverseParentDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TraverseParentMapper {



    void insertTraverseParent( @Param("traverseParent") List<RTTraverseParentDO> traverseParent);

    @Select("select tid,templatePlanId,projectPlanId,objectid,planid from TE_PR_PLAN where planid=#{planId} ")
    List<RTTraverseParentDO> selectTraverseParent(@Param("planId") String planId);


    @Select("select tid,templatePlanId,projectPlanId,objectid from TE_PR_PLAN where projectPlanId=#{TemplatePlanId} ")
    List<RTTraverseParentDO> queryTraverseParentByTemplatePlanId(@Param("TemplatePlanId") String TemplatePlanId);
}
